package com.tcm.store.domain.enums;

import com.base.core.result.ResponseCodeEnum;

/**
 * 错误码枚举类
 *
 * 店鋪系统，使用 1-004-000-000 段
 */
public enum BusinessCodeEnum implements ResponseCodeEnum {

    //================供应商模块 ======================
    STORE_NAME_NOT_DUPLICATE(1004001001,"您已经拥有了此药房，不能重复申请"),
    STORE_ID_NOT_EXISTS(1004001002, "主键ID不存在"),
    STORE_OBJECT_NOT_EXISTS(1004001003, "药房数据不能是空的"),
    STORE_INTRODUCE_NOT_DUPLICATE(1004001004, "药房简介内容不能重复"),
    STORE_INTRODUCE_NOT_EXISTS(1004001005, "要更新的药房简介内容不存在"),
    STORE_NOT_EXISTS(1004001006, "药房不存在"),
    SERVICE_CATEGORY_EXISTS(1004001007, "药房已添加此服务类别"),
    SERVICE_CATEGORY_NOT_EXISTS(1004001008, "药房服务类别不存在"),
    SERVICE_ID_NOT_EXISTS(1004001009, "药房服务类别主键ID不存在"),
    SERVICE_NOT_EXISTS(1004001010, "药房服务不存在"),
    ;


    private final int code;
    private final String message;

    BusinessCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}